import { defineConfig } from "unocss";
import presetWeapp from 'unocss-preset-weapp'

const include = [/\.wxml$/]

export default defineConfig({
  rules: [
    [/^mt-(\d)$/, ([, d]) => ({ margin: `${d}rpx` })]
  ],
  content:{
    pipeline:{
      include
    }
  },
  presets: [
    presetWeapp({
      whRpx:true
    }),
  ],
  separators:'__'
})